{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "0d9c3f55",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "课程表\n",
      "8:00-9:35 网球\n",
      "10：35-12：00 大学英语\n",
      "14:30-15:55 h5技术\n",
      "18:45-20:10 摄影经典作品赏析\n",
      "20:15-21:45 非物质文化遗产\n"
     ]
    }
   ],
   "source": [
    "print(\"课程表\")\n",
    "import datetime\n",
    "time = datetime.datetime.today().weekday()\n",
    "week_time = int(time)\n",
    "if week_time==0:\n",
    "    print(\"好好休息\")\n",
    "elif week_time==1:\n",
    "    print(\"8:00-9:35 网球\");print(\"10：35-12：00 大学英语\");print(\"14:30-15:55 h5技术\");print(\"18:45-20:10 摄影经典作品赏析\");print(\"20:15-21:45 非物质文化遗产\")\n",
    "elif week_time==2:\n",
    "    print(\"9:45-12:00 毛概实践\");print(\"18:45-20:10 毛概理论\")\n",
    "elif week_time==3:\n",
    "    print(\"9:45-12:00 Python语言\");print(\"14:30-16:50 广告文案\");print(\"16：10-17：35 大学英语\")\n",
    "elif week_time==4:\n",
    "    print(\"8:00-9:30 Illustrator软件应用\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a959c385",
   "metadata": {},
   "source": [
    "## while循环（无限循环)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "52b223c9",
   "metadata": {},
   "outputs": [],
   "source": [
    "  count = 0\n",
    "  while True:\n",
    "     print(\"加油！！\",count)\n",
    "     count +=1 #开始循环\n",
    "    if count == 10:  #加入结束条件\n",
    "        break "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d40aa8a3",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "id": "cf8d06c9",
   "metadata": {},
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
